<?php
class My_View_Helper_Pathinfo extends Zend_View_Helper_Abstract {
    public function pathinfo(){
        $module = Zend_Controller_Front::getInstance()->getRequest()->getModuleName();        
        $controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();                
        $view = Zend_Controller_Front::getInstance()->getRequest()->getActionName();
        
        $html = '<input type="hidden" name="module" id="module" value="'.$module.'" />';               
        $html .= '<input type="hidden" name="controller" id="controller" value="'.$controller.'" />';               
        $html .= '<input type="hidden" name="action" id="action" value="'.$view.'" />';               
        return $html;
    }
}
?>
